package com.cqie.hospitalescort.service;

import com.cqie.hospitalescort.DTO.EscortDTO;
import com.cqie.hospitalescort.controller.params.EscortParam;
import com.cqie.hospitalescort.entity.EscortInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 陪诊人员表 服务类
 * </p>
 *
 * @author gdy
 * @since 2025-02-18
 */
public interface EscortInfoService extends IService<EscortInfo> {

    @PreAuthorize(value = "hasRole('ROLE_ADMIN')")
    List<EscortInfo> getList(EscortParam param);

    @PreAuthorize(value = "hasAnyRole('ROLE_ADMIN','ROLE_ESCORT')")
    void save(EscortDTO dto);

    @PreAuthorize(value = "hasRole('ROLE_ADMIN')")
    void delete(Long id);

    Integer getScore(Long id);
}
